#!/usr/bin/python

import sys
import bsddb

if __name__ == "__main__":
    db_fname = sys.argv[1]
    key = sys.argv[2]    

    db = bsddb.hashopen(db_fname)
    print db[key]

